package com.example.datadashboard.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.datadashboard.entity.Dashboard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DashboardMapper extends BaseMapper<Dashboard> {
    List<Dashboard> selectByUserId(@Param("userId") Long userId);
    List<Dashboard> selectPublicDashboards();
}
